<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <meta name="csrf-token" content="{{csrf_token()}}">
</head>
<body>
    <div>
        我们是广播的事件
    </div>
</body>

<script src="{{ URL::asset('js/app.js') }}"></script>

<script type="text/javascript">

    window.Echo.channel('news').listen('News', (e)=>{
        console.log(e.message+'===666');
    });

    /*Echo.channel('news').listen('News', (e) => {
        console.log(e.message);
    })*/
</script>

</html>
